/*
 * Creates a print page with info about one project
 * Looks best in Google Chrome
 */
function print(title, alt, owner, date, desc, status) {
    my_window = window.open("", "mywindow1");   //opens a new window
    var headstr = "<html><head><title></title></head><body>";
    var footstr = "</body>"; 
    var tittel = "<h1>"+title+"</h1>";
    var alter = "<h2>"+alt+"</h2>";
    var eier = "<h3>Eier: "+owner+"</h3>";  // add all info about the project
    var dato = "<h3>Dato: "+date+"</h3>";
    var stat = "<h3>Status: "+status+"</h3>";
    var besk = "<p>"+desc+"</p>";    
    my_window.document.write(headstr+tittel+alter+eier+dato+stat+besk+footstr);
    my_window.document.body.style.textAlign = "center"; // a litle css
    my_window.window.print();                           //display print message
    my_window.close();                                  // close the window
}